import request from '../utils/request'
import { ADMIN_API_BASE_URL } from '../config'

export const getProjectListApi = (count = 1, limitNum = 10) => request.get(`${ADMIN_API_BASE_URL}/pro/list`, {
  params: { count, limitNum }, allRes: true,
})
export const postChangeFlagApi = (params) => request.post(`${ADMIN_API_BASE_URL}/pro/updateFlag`, params)
export const getProDetailItemApi = (proid) => request.get(`${ADMIN_API_BASE_URL}/pro/detail`, { params: { proid } })
export const postProFilterItemApi = (params) => request.post(`${ADMIN_API_BASE_URL}/pro/searchPro`, params)
export const getProjectCategoryApi = () => request.get(`${ADMIN_API_BASE_URL}/pro/getCategory`)
